// 登录接口需要携带参数ts类型
export interface LoginForm {
  username: string
  password: string
}

interface dataType {
    message?: string
    token?:string
}

//登录接口返回数据类型
export interface LoginResponseData {
    code: number
    data: dataType
}


// 定义用户信息接口返回数据类型
interface UserInfo {
  userId: number;
  avatar: string;
  username: string;
  password: string;
  desc: string;
  roles: string[];
  buttons: string[];
  routes: string[];
  token: string;
}

interface user {
    message: string | undefined
    checkUser:UserInfo
}

export interface UserInfoResponseData {
    code: number
    data: user
}